package com.ruoyi.consume.service;

import java.util.List;
import com.ruoyi.consume.domain.PesticideApplyTemporaryCon;

/**
 * 农药临时领用Service接口
 *
 * @author ruoyi
 * @date 2021-07-27
 */
public interface IPesticideApplyTemporaryConService
{
    /**
     * 查询农药临时领用
     *
     * @param pesticideApplyTemporaryId 农药临时领用ID
     * @return 农药临时领用
     */
    public PesticideApplyTemporaryCon selectPesticideApplyTemporaryById(Long pesticideApplyTemporaryId);

    /**
     * 查询农药临时领用列表
     *
     * @param pesticideApplyTemporaryCon 农药临时领用
     * @return 农药临时领用集合
     */
    public List<PesticideApplyTemporaryCon> selectPesticideApplyTemporaryList(PesticideApplyTemporaryCon pesticideApplyTemporaryCon);

    /**
     * 新增农药临时领用
     *
     * @param pesticideApplyTemporaryCon 农药临时领用
     * @return 结果
     */
    public int insertPesticideApplyTemporary(PesticideApplyTemporaryCon pesticideApplyTemporaryCon);

    /**
     * 修改农药临时领用
     *
     * @param pesticideApplyTemporaryCon 农药临时领用
     * @return 结果
     */
    public int updatePesticideApplyTemporary(PesticideApplyTemporaryCon pesticideApplyTemporaryCon);

    /**
     * 批量删除农药临时领用
     *
     * @param pesticideApplyTemporaryIds 需要删除的农药临时领用ID
     * @return 结果
     */
    public int deletePesticideApplyTemporaryByIds(Long[] pesticideApplyTemporaryIds);

    /**
     * 删除农药临时领用信息
     *
     * @param pesticideApplyTemporaryId 农药临时领用ID
     * @return 结果
     */
    public int deletePesticideApplyTemporaryById(Long pesticideApplyTemporaryId);

    /**
     * 更新库存量表
     *
     * @param pesticideApplyTemporaryCon 农药临时领用
     * @return 结果
     */
    public int updateAmount(PesticideApplyTemporaryCon pesticideApplyTemporaryCon);

    /**
     * 更新领用状态
     *
     * @param pesticideApplyTemporaryId 农药临时领用ID
     * @return 结果
     */
    public int updateConsumeStatus(Long pesticideApplyTemporaryId);

    /**
     * 退回操作
     *
     * @param pesticideApplyTemporaryId 农药临时领用ID
     * @return 结果
     */
    public int updateApprovalStatus(Long pesticideApplyTemporaryId);
}
